package com.zmn.plat.common.dto.product.tariff.item;

import com.zmn.plat.common.dto.product.tariff.base.BaseTariffProductDIO;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author tanbiao
 * @description：查询项目列表输入实体
 * @modifier
 * @since 2019/12/30 18:26
 **/
@Data
@Valid
@ToString(callSuper = true)
public class TariffProductItemCategDIO extends BaseTariffProductDIO {
    private static final long serialVersionUID = 1L;

    /**
     * 计价器故障类型ID
     */
    @NotNull(message = "faultCategId不能为空")
    @Positive(message = "faultCategId必须为大于0的正整数")
    private Integer faultCategId;

    /**
     * 所选故障项目，需要根据该参数层层筛选可用后台产品
     */
    @Size(max = 100, message = "itemIds参数个数不能超过100")
    private List<Integer> itemIds;

    /**
     * 品牌id，如果选择了品牌
     */
    @Positive(message = "brandId必须为大于0的正整数")
    private Integer brandId;

}

